package hu.stud.uszeged.inf.prf.prftrac.session;

import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Begin;
import org.jboss.seam.annotations.web.RequestParameter;
import org.jboss.seam.framework.EntityHome;

import hu.stud.uszeged.inf.prf.prftrac.entity.Ticket;

@Name("ticketHome")
public class TicketHome extends EntityHome<Ticket>
{
    @RequestParameter Long ticketId;

    @Override
    public Object getId()
    {
        if (ticketId == null)
        {
            return super.getId();
        }
        else
        {
            return ticketId;
        }
    }

    @Override @Begin(join=true)
    public void create() {
        super.create();
    }

}
